// FIT_5203_Gorodilov_TrSegView.cpp : implementation of the CFIT_5203_Gorodilov_TrSegView class
//

#include "stdafx.h"
#include "FIT_5203_Gorodilov_TrSeg.h"

#include "FIT_5203_Gorodilov_TrSegDoc.h"
#include "FIT_5203_Gorodilov_TrSegView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CFIT_5203_Gorodilov_TrSegView

IMPLEMENT_DYNCREATE(CFIT_5203_Gorodilov_TrSegView, CScrollView)

BEGIN_MESSAGE_MAP(CFIT_5203_Gorodilov_TrSegView, CScrollView)
END_MESSAGE_MAP()

// CFIT_5203_Gorodilov_TrSegView construction/destruction

CFIT_5203_Gorodilov_TrSegView::CFIT_5203_Gorodilov_TrSegView()
{
	// TODO: add construction code here

}

CFIT_5203_Gorodilov_TrSegView::~CFIT_5203_Gorodilov_TrSegView()
{
}

BOOL CFIT_5203_Gorodilov_TrSegView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CScrollView::PreCreateWindow(cs);
}

// CFIT_5203_Gorodilov_TrSegView drawing

void CFIT_5203_Gorodilov_TrSegView::OnDraw(CDC* /*pDC*/)
{
	CFIT_5203_Gorodilov_TrSegDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}

void CFIT_5203_Gorodilov_TrSegView::OnInitialUpdate()
{
	CScrollView::OnInitialUpdate();

	CSize sizeTotal;
	// TODO: calculate the total size of this view
	sizeTotal.cx = sizeTotal.cy = 100;
	SetScrollSizes(MM_TEXT, sizeTotal);
}


// CFIT_5203_Gorodilov_TrSegView diagnostics

#ifdef _DEBUG
void CFIT_5203_Gorodilov_TrSegView::AssertValid() const
{
	CScrollView::AssertValid();
}

void CFIT_5203_Gorodilov_TrSegView::Dump(CDumpContext& dc) const
{
	CScrollView::Dump(dc);
}

CFIT_5203_Gorodilov_TrSegDoc* CFIT_5203_Gorodilov_TrSegView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFIT_5203_Gorodilov_TrSegDoc)));
	return (CFIT_5203_Gorodilov_TrSegDoc*)m_pDocument;
}
#endif //_DEBUG


// CFIT_5203_Gorodilov_TrSegView message handlers
